<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  document.body.bgColor = "#679097";

  var min = 100000;
  var max = 999999;
  setInterval(function () {
    var color = Math.floor(Math.random() * (max - min) + min);
    document.body.bgColor = "#" + color;
  }, 1000);
</script>
